package com.ttedu.database.service.Impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Service;

import com.ttedu.database.model.itemsanswers;
import com.ttedu.database.service.ItemsAnswersService;
@Service
public class ItemsAnswersServiceImpl implements ItemsAnswersService{
	//批量添加答案
	public void addBacthItemsAnswers(List<itemsanswers> list,int itemId){
		List<itemsanswers> listresert=new ArrayList<itemsanswers>();
		for(itemsanswers itemanswer:list){
			itemanswer.setItemId(itemId);
			itemanswer.setCreatedAt(new Date());
			itemanswer.setUpdatedAt(new Date());
			listresert.add(itemanswer);
		}
		//执行sql
	}
}
